package com.fulihui.common.enums;

/**
 * 性别枚举
 *
 * @author wang_wx
 * @date 2018-08-02
 */
public enum SexEnum implements BaseEnum {

    male(1L, "male", "男性"),
    female(2L, "female", "女性"),
    unknown(0L, "unknown", "未知"),
    all(null, "all", "全部");

    private Long value;
    private String code;
    private String desc;

    SexEnum(Long value, String code, String desc) {
        this.value = value;
        this.code = code;
        this.desc = desc;
    }

    public long getValue() {
        return this.value;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }
}
